package com.star.bookstore.member.dao;

import com.star.bookstore.member.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author wuLiFei
 * @email wuLiFei@gmail.com
 * @date 2021-03-07 19:18:32
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    List<UserEntity> selectBasic(Long userId);

    UserEntity loginCheckByUsername(String username, String password);

    UserEntity loginCheckByMobile(String mobile, String password);

    UserEntity getByUsernameOrMobile(String username, String mobile);
}
